<?php


namespace app\index\validate;


use think\Validate;
class AddressValidate extends Validate
{
    protected $rule = [
        'keyword'               => 'chsAlpha|length:1,5',
    ];

    protected $message = [
        'keyword.alphaNum'      => '关键字只能是中文或者是字母',
        'keyword.length'        => '关键字只能填1-5位'
    ];
}